<template>
  <div class="box">
    <h1>全局事件总线$bus</h1>
    <hr />
    <div class="container">
      <child-1></child-1>
      <child-2></child-2>
    </div>
  </div>
</template>

<script setup lang="ts">
import child1 from "./child1.vue";
import child2 from "./child2.vue";
</script>
<style scoped lang="less">
.box {
  width: 100vw;
  height: 400px;
  background: yellowgreen;
  .container {
    display: flex;
    justify-content: space-between;
  }
}
</style>